package router

import (
	"gateway/basic/config"
	"gateway/handler/api"
	"gateway/middleware"
	"github.com/gin-gonic/gin"
)

func Ai(v1 *gin.RouterGroup) {

	ai := v1.Group("/address")
	{
		ai.Use(middleware.JWTAuth(config.JWTKEY))
		ai.POST("/chatWithAi", api.ChatWithAi)         // 聊天
		ai.GET("/getChatHistory", api.GetChatHistorys) // 获取对话记录
		ai.GET("/getSessionList", api.GetSessionList)  // 获取会话列表
	}
}
